import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import filters from "./utils/filter";
import utils from "./utils/utils";

import "./assets/css/index.less";
import "./utils/plugin";
import "./utils/FastClick";
import "./permission";

import { Button, Field, NavBar, Icon } from "vant";

Vue.use(Button)
	.use(Field)
	.use(NavBar)
	.use(Icon);

Vue.use(utils);

// 注入全局过滤器
Object.keys(filters).forEach(item => {
	Vue.filter(item, filters[item]);
});

Vue.config.productionTip = false;

export default new Vue({
	el: "#app",
	router,
	store,
	render: h => h(App)
});
